package string;

public class StringDemo {
    public static void main(String[] args) {
        String s = new String("lee6");
        String s2 = "lee6";
        System.out.println(s==s2);
        System.out.println(s.equals(s2));





        /*
        String s1 = "lee666";
        String s2 = "lee"+"666";
        System.out.println(s1==s2);
        String s3 = "lee";
        String s4 = s3+"666";
        System.out.println(s1==s4);
         */
    }
}
